// This file was procedurally generated from the following sources:
// - src/subclass-builtins/Float64Array.case
// - src/subclass-builtins/default/statement.template
/*---
description: new SubFloat64Array() instanceof Float64Array (Subclass instanceof Heritage)
features: [TypedArray, Float64Array]
flags: [generated]
---*/


function Test() {
    class Subclass extends Float64Array {}

    const sub = new Subclass();
    assert(sub instanceof Subclass);
    assert(sub instanceof Float64Array);
}

// preheat
const NUMBER_OF_PREHEAT = 1;
for (let i = 0; i < NUMBER_OF_PREHEAT; i++) {
    Test();
}

ArkTools.jitCompileAsync(Test);
assert.sameValue(ArkTools.waitJitCompileFinish(Test), true, '[JIT] JIT disabled.');

// test
const NUMBER_OF_TEST = 1; // or 2
for (let i = 0; i < NUMBER_OF_TEST; i++) {
    Test();
}
